css: Don't print both border-image-repeat values when they're identical
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Jul 2011 00:40:34 +0000 (02:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Jul 2011 00:43:54 +0000 (02:43 +0200)
gtk/gtkstyleproperty.c

index 89e78175e05964bdcd41e3354bce863806ecfe22..c44d0e72806a09c4ba1e162b2bdb453327ca1ab4 100644 (file)
@@ -1183,9 +1183,12 @@ border_image_repeat_value_print (const GValue *value,
 
   image_repeat = g_value_get_boxed (value);
 
-  g_string_append_printf (string, "%s %s",
-                          border_image_repeat_style_to_string (image_repeat->hrepeat),
-                          border_image_repeat_style_to_string (image_repeat->vrepeat));
+  g_string_append (string, border_image_repeat_style_to_string (image_repeat->hrepeat));
+  if (image_repeat->hrepeat != image_repeat->vrepeat)
+    {
+      g_string_append (string, " ");
+      g_string_append (string, border_image_repeat_style_to_string (image_repeat->vrepeat));
+    }
 }
 
 static gboolean